package ioc01;

/**
 * Author：汤小洋
 * Date：2023-09-19 10:21
 * Description：<描述>
 */
public class HelloSpring {

    public HelloSpring(){
        System.out.println("HelloSpring构造方法........");
    }

    private String name;

    public String getName() {
        return name;
    }

    // 通过该方法注入值
    public void setName(String name) {
        this.name = name;
    }

    public void show(){
        System.out.println("Hello Spring........" + name);
    }
}
